package com.iscas.tech.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.iscas.tech.entity.AtMdbusyValue;
import com.iscas.tech.param.AtMdbusyValuePageParam;
import com.iscas.tech.vo.AtMdbusyValueQueryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 模块业务值对应表 Mapper 接口
 *
 * @author yangyi
 * @since 2020-10-26
 */
@Repository
public interface AtMdbusyValueMapper extends BaseMapper<AtMdbusyValue> {

    /**
     * 获取分页对象
     *
     * @param page
     * @param atMdbusyValuePageParam
     * @return
     */
    IPage<AtMdbusyValueQueryVo> getAtMdbusyValuePageList(@Param("page") Page page, @Param("param") AtMdbusyValuePageParam atMdbusyValuePageParam);

    /**
     * @param bsId   业务ID
     * @param mdType {@link com.iscas.tech.bo.MdType}所属功能
     */
    void deleteByBsId(@Param("bsId") Long bsId, @Param("mdType") Integer mdType);
}
